hysop.symbolic.spectral module

class hysop.symbolic.spectral.AppliedSpectralTransform(*args)[source]

Bases: AppliedSymbolicField

An applied spectral transform.

__eq__(other)[source]

Fix sympy v1.2 eq

__ne__(other)[source]

Fix sympy v1.2 neq

property all_vars
default_assumptions: ClassVar[StdFactKB] = {}
property domain
property dtype
property field
format_transforms()[source]
property frame
free_symbols = {}
property freq_vars
property is_forward
property is_number

bool(x) -> bool

Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The class bool is a subclass of the class int, and cannot be subclassed.

property lboundaries
long_description()[source]
name: str
property rboundaries
short_description()[source]
property space_vars
property spatial_axes
property transformed_axes
property transforms
property wave_numbers
class hysop.symbolic.spectral.SpectralTransform(field, axes=None, forward=True)[source]

Bases: SymbolicField

A single spectral transform that may be applied. This object can also be used as am sympy expression (and a FieldExpression).

This expression carries datatype and boundary conditions.

__eq__(other)[source]

Fix sympy v1.2 eq

__hash__()[source]

Fix sympy v1.2 hashes

__ne__(other)[source]

Fix sympy v1.2 neq

classmethod generate_wave_numbers(transforms)[source]
class hysop.symbolic.spectral.WaveNumber(axis, transform, exponent, **kwds)[source]

Bases: Dummy

Wave number symbol for SpectralTransform derivatives (and integrals).

Symbols are identified by name and assumptions:

>>> from sympy import Symbol
>>> Symbol("x") == Symbol("x")

True >>> Symbol(“x”, real=True) == Symbol(“x”, real=False) False

property axis
default_assumptions: ClassVar[StdFactKB] = {}
dummy_index
property exponent
indexed_buffer(name=None)[source]
property is_complex
property is_real
pow(exponent)[source]
property transform
class hysop.symbolic.spectral.WaveNumberIndex(axis)[source]

Bases: Symbol

Symbols are identified by name and assumptions:

>>> from sympy import Symbol
>>> Symbol("x") == Symbol("x")

True >>> Symbol(“x”, real=True) == Symbol(“x”, real=False) False

bind_axes(axes)[source]
default_assumptions: ClassVar[StdFactKB] = {}
name: str
property real_index